﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductMain.ascx.cs" Inherits="Control_ProductMain" %>
<%@ Register Src="~/Admin/Control/Pager/Pager.ascx" TagName="Page" TagPrefix="uc1" %>
<asp:Repeater ID="repParent" runat="server" OnItemDataBound="ItemBound">
    <HeaderTemplate>
        <div class="Product-Main" style="background-color:Transparent;">
    </HeaderTemplate>
    <ItemTemplate>
        <div class="item" style="background-color:Transparent;">
        <asp:HiddenField ID="HiddenID" Value='<%# Eval("IntId") %>' runat="server"/>
            <h3>
                <a href='/Product/Default.aspx?t=san-pham&ID=<%# Eval("IntId") %>&textid=<%# GetTextID(Eval("CatName").ToString()) %>' style="text-transform: uppercase;">
                    <%# Eval("CatName") %>
                </a>
            </h3>
            <asp:Repeater ID="repChildren" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <p class="imgbg" style="width:222px;height:224px;padding-bottom:10px; background: url(  ../images/box-sp2.png ) no-repeat scroll 0 0 transparent;">
                            <a   href='/Product/Default.aspx?t=san-pham&CATEGORYID=<%# Eval("ProductID") %>&PRODID=<%# Eval("IntID") %>&textid=<%# GetTextID(Eval("title_vn").ToString())%>' onmouseout="hideddrivetip()" onmouseover="ddrivetip('<img src=..<%# Eval("Photo")  %> width=97 height=77 border=0 alt=cofico FIBRE align=left style=margin-right:10px; margin-bottom:5px /><span class=texttitle_blue><b><%# Eval("ProductCode") %></b></span><div style=text-align:justify;font-size:11px;><%# Eval("Specification_vn") %></div>')">
                                <img src='..<%# Eval("Photo")  %>' width="130px" style="padding-top:40px"  height="130px" /></a>
                        </p>
                        <p style="margin-top:0px;font-weight:bold">
                            <%# Eval("title_vn") %></p>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
            
        </div>
    </ItemTemplate>
    <FooterTemplate>
        </div>
    </FooterTemplate>
</asp:Repeater>

<center>
   <uc1:Page ID="Page1" runat="server" NumPageView="5"  CurrentPageCSS="current" PageSize="5" />
</center>